// app/models/user.js
// load the things we need
var mongoose = require('mongoose');

// define the schema for our user model
var userSchema = new mongoose.Schema({

	userid:String,
	password : String,
	loggedIn : [],
	lastTimeLoggedIn : Date,
	level : Number,
	rights : []



	});

// methods ======================


// create the model for users and expose it to our app
module.exports = mongoose.model('AdminUser', userSchema);
